package com.ub.party.web.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @author yuanwei
 */
@Service
public class ApplicationPropertyConfig {

    /**
     * 网站协议
     */
    @Value("${domain.protocol}")
    private String domainProtocol;

    /**
     * 网站主域名
     */
    @Value("${domain.host}")
    private String domainHost;

    /**
     * 标题
     */
    @Value("${shreec.title}")
    private String title;


    /**
     * 管理平台标题
     */
    @Value("${shreec.admin.title}")
    private String adminTitle;



    /**
     * 注册成功标题
     */
    @Value("${register.sub.title.success}")
    private String successSubTitle;

    /**
     * 注册成功描述
     */
    @Value("${register.description.success}")
    private String successDescription;

    /**
     * 注册成功账已存在描述
     */
    @Value("${register.description.duplicate}")
    private String duplicateDescription;

    /**
     * 注册失败标题
     */
    @Value("${register.sub.title.failure}")
    private String failureSubTitle;

    /**
     * 注册失败描述
     */
    @Value("${register.description.failure}")
    private String failureDescription;


    public String getDomainProtocol() {
        return domainProtocol;
    }

    public void setDomainProtocol(String domainProtocol) {
        this.domainProtocol = domainProtocol;
    }

    public String getDomainHost() {
        return domainHost;
    }

    public void setDomainHost(String domainHost) {
        this.domainHost = domainHost;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAdminTitle() {
        return adminTitle;
    }

    public void setAdminTitle(String adminTitle) {
        this.adminTitle = adminTitle;
    }

    public String getHomePath() {
        return getDomainProtocol() + getDomainHost();
    }

    public String getSuccessSubTitle() {
        return successSubTitle;
    }

    public void setSuccessSubTitle(String successSubTitle) {
        this.successSubTitle = successSubTitle;
    }

    public String getSuccessDescription() {
        return successDescription;
    }

    public void setSuccessDescription(String successDescription) {
        this.successDescription = successDescription;
    }

    public String getDuplicateDescription() {
        return duplicateDescription;
    }

    public void setDuplicateDescription(String duplicateDescription) {
        this.duplicateDescription = duplicateDescription;
    }

    public String getFailureSubTitle() {
        return failureSubTitle;
    }

    public void setFailureSubTitle(String failureSubTitle) {
        this.failureSubTitle = failureSubTitle;
    }

    public String getFailureDescription() {
        return failureDescription;
    }

    public void setFailureDescription(String failureDescription) {
        this.failureDescription = failureDescription;
    }
}

